.class public Lcom/xingbook/huiben/activity/HuibenReadingActivity;
.super Lcom/xingbook/park/activity/BaseActivity;


# instance fields
.field private a:Lcom/xingbook/huiben/view/ViewPagerModify;

.field private b:Lcom/xingbook/huiben/b/d;

.field private c:Lcom/xingbook/huiben/a/a;

.field private d:Lcom/xingbook/huiben/adapter/ViewPagerAdapter;

.field private e:Ljava/util/ArrayList;

.field private f:Ljava/util/ArrayList;

.field private g:I

.field private h:Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;

.field private i:Lcom/xingbook/huiben/b/f;

.field private l:Lcom/xingbook/huiben/view/h;

.field private m:Lcom/xingbook/huiben/activity/f;

.field private n:Ljava/lang/String;

.field private o:I

.field private p:J

.field private q:Z


# direct methods
.method public constructor <init>()V
    .locals 3

    const/4 v2, -0x1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    iput v2, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->g:I

    new-instance v0, Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;

    new-instance v1, Lcom/xingbook/huiben/activity/b;

    invoke-direct {v1, p0}, Lcom/xingbook/huiben/activity/b;-><init>(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)V

    invoke-direct {v0, v1}, Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;-><init>(Lcom/xingbook/huiben/receiver/a;)V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->h:Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;

    new-instance v0, Lcom/xingbook/huiben/activity/c;

    invoke-direct {v0, p0}, Lcom/xingbook/huiben/activity/c;-><init>(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->i:Lcom/xingbook/huiben/b/f;

    new-instance v0, Lcom/xingbook/huiben/activity/d;

    invoke-direct {v0, p0}, Lcom/xingbook/huiben/activity/d;-><init>(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->l:Lcom/xingbook/huiben/view/h;

    new-instance v0, Lcom/xingbook/huiben/activity/f;

    invoke-direct {v0, p0}, Lcom/xingbook/huiben/activity/f;-><init>(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->m:Lcom/xingbook/huiben/activity/f;

    iput v2, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->o:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->q:Z

    return-void
.end method

.method static synthetic a(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)Lcom/xingbook/huiben/activity/f;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->m:Lcom/xingbook/huiben/activity/f;

    return-object v0
.end method

.method private a()V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.huiben.play.musicservice.action.STOP"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->finish()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/huiben/activity/HuibenReadingActivity;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->q:Z

    return-void
.end method

.method static synthetic a(Lcom/xingbook/huiben/activity/HuibenReadingActivity;I)Z
    .locals 1

    invoke-direct {p0, p1}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c(I)Z

    move-result v0

    return v0
.end method

.method static synthetic b(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)Lcom/xingbook/huiben/b/d;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->b:Lcom/xingbook/huiben/b/d;

    return-object v0
.end method

.method private b()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v0}, Lcom/xingbook/huiben/a/a;->t()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->n:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v0}, Lcom/xingbook/huiben/a/a;->s()I

    move-result v0

    iput v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->o:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->p:J

    return-void
.end method

.method static synthetic b(Lcom/xingbook/huiben/activity/HuibenReadingActivity;I)Z
    .locals 1

    invoke-direct {p0, p1}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e(I)Z

    move-result v0

    return v0
.end method

.method static synthetic c(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)Lcom/xingbook/huiben/view/ViewPagerModify;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    return-object v0
.end method

.method private c()V
    .locals 6

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->n:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->o:I

    iget-object v1, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->n:Ljava/lang/String;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iget-wide v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->p:J

    sub-long/2addr v2, v4

    long-to-int v2, v2

    iget-boolean v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->q:Z

    invoke-static {v0, v1, v2, v3}, Lcom/xingbook/park/d/j;->a(ILjava/lang/String;IZ)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->n:Ljava/lang/String;

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->p:J

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->o:I

    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/xingbook/huiben/activity/HuibenReadingActivity;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->g:I

    return-void
.end method

.method private c(I)Z
    .locals 1

    const/4 v0, 0x1

    if-le p1, v0, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic d(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)Lcom/xingbook/huiben/a/a;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method private e(I)Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x2

    if-ge p1, v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic f(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a()V

    return-void
.end method

.method static synthetic g(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->g:I

    return v0
.end method

.method static synthetic h(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    return-object v0
.end method


# virtual methods
.method public a(I)I
    .locals 2

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, -0x1

    :goto_0
    return v0

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ge p1, v0, :cond_0

    sub-int/2addr v0, p1

    add-int/lit8 v0, v0, 0x64

    goto :goto_0
.end method

.method public b(I)I
    .locals 3

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-lt v1, v2, :cond_0

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x2

    :goto_1
    return v0

    :cond_0
    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-le v0, p1, :cond_1

    add-int/lit8 v0, v1, -0x1

    goto :goto_1

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u7ed8\u672c-\u7ed8\u672c\u9605\u8bfb"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11

    const/16 v2, 0x400

    const/4 v10, 0x1

    const/4 v5, 0x0

    const/4 v9, -0x1

    const/high16 v8, -0x100

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "com.xingbook.huiben.activity.HuibenReadingActivity.INTENT_BEAN"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "com.xingbook.huiben.activity.HuibenReadingActivity.INTENT_BEAN"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/xingbook/huiben/a/a;

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    :goto_0
    invoke-virtual {p0, v10}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->requestWindowFeature(I)Z

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    new-instance v2, Landroid/widget/RelativeLayout;

    invoke-direct {v2, v1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {p0, v2}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->setContentView(Landroid/view/View;)V

    new-instance v3, Lcom/xingbook/huiben/activity/e;

    invoke-direct {v3, p0}, Lcom/xingbook/huiben/activity/e;-><init>(Lcom/xingbook/huiben/activity/HuibenReadingActivity;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v4}, Lcom/xingbook/huiben/a/a;->a()Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->f:Ljava/util/ArrayList;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v0, v8}, Landroid/widget/ImageView;->setBackgroundColor(I)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v0}, Lcom/xingbook/huiben/a/a;->b()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    new-instance v0, Lcom/xingbook/huiben/adapter/ViewPagerAdapter;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    invoke-direct {v0, v4}, Lcom/xingbook/huiben/adapter/ViewPagerAdapter;-><init>(Ljava/util/List;)V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->d:Lcom/xingbook/huiben/adapter/ViewPagerAdapter;

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v8}, Landroid/widget/ImageView;->setBackgroundColor(I)V

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v9, v9}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    new-instance v3, Lcom/xingbook/huiben/view/ViewPagerModify;

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/xingbook/huiben/view/ViewPagerModify;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    iget-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    invoke-virtual {v3, v0}, Lcom/xingbook/huiben/view/ViewPagerModify;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->d:Lcom/xingbook/huiben/adapter/ViewPagerAdapter;

    invoke-virtual {v3, v4}, Lcom/xingbook/huiben/view/ViewPagerModify;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->l:Lcom/xingbook/huiben/view/h;

    invoke-virtual {v3, v4}, Lcom/xingbook/huiben/view/ViewPagerModify;->setOnPageChangeListener(Lcom/xingbook/huiben/view/h;)V

    iget-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v3, Lcom/xingbook/huiben/b/d;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->i:Lcom/xingbook/huiben/b/f;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v5

    invoke-direct {v3, v1, v4, v5}, Lcom/xingbook/huiben/b/d;-><init>(Landroid/content/Context;Lcom/xingbook/huiben/b/f;F)V

    iput-object v3, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->b:Lcom/xingbook/huiben/b/d;

    iget-object v1, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->b:Lcom/xingbook/huiben/b/d;

    invoke-virtual {v1, v0}, Lcom/xingbook/huiben/b/d;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->b:Lcom/xingbook/huiben/b/d;

    invoke-virtual {v2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->b:Lcom/xingbook/huiben/b/d;

    iget-object v1, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/huiben/b/d;->a(Lcom/xingbook/huiben/a/a;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->h:Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;

    invoke-virtual {v0, p0}, Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->a:Lcom/xingbook/huiben/view/ViewPagerModify;

    invoke-virtual {v0, v10}, Lcom/xingbook/huiben/view/ViewPagerModify;->setCurrentItem(I)V

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-direct {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->b()V

    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u8d44\u6e90\u52a0\u8f7d\u5931\u8d25\uff0c\u64ad\u653e\u7a97\u53e3\u5df2\u5173\u95ed\uff01"

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :cond_1
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    new-instance v5, Landroid/widget/ImageView;

    invoke-direct {v5, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    sget-object v6, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-virtual {v5, v8}, Landroid/widget/ImageView;->setBackgroundColor(I)V

    new-instance v6, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v7, -0x2

    invoke-direct {v6, v9, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v6, 0x7f0a0035

    invoke-virtual {v5, v6, v0}, Landroid/widget/ImageView;->setTag(ILjava/lang/Object;)V

    invoke-virtual {v5, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1
.end method

.method protected onDestroy()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->h:Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;

    invoke-virtual {v0, p0}, Lcom/xingbook/huiben/receiver/HuibenServiceStateReceiver;->b(Landroid/content/Context;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.huiben.play.musicservice.action.STOP"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    invoke-direct {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c()V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 3

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->getRequestedOrientation()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v1}, Lcom/xingbook/huiben/a/a;->e()I

    move-result v1

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v0}, Lcom/xingbook/huiben/a/a;->e()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->setRequestedOrientation(I)V

    :cond_0
    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.huiben.play.musicservice.action.PLAY"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "url"

    iget-object v2, p0, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->c:Lcom/xingbook/huiben/a/a;

    invoke-virtual {v2}, Lcom/xingbook/huiben/a/a;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/huiben/activity/HuibenReadingActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    return-void
.end method
